package com.joelemon.mockinfluxdbdata.datamock.v1;

import com.fasterxml.jackson.annotation.JsonCreator;

/**
 * @Description: TODO
 * @Author: HJY
 * @Date: 2023/11/14
 */
public enum ChangeType {

    INCREASE,// 线性增长
    DECREASE,// 线性减少
    RANDOM,// 波动
    ;
    @JsonCreator
    public static ChangeType of(String name) {
        for (ChangeType type : values()) {
            if (type.name().equals(name)) {
                return type;
            }
        }
        return null;
    }
}
